package com.hkfrich.system.domain;//---------------------------------------------------------
// Application: all of dodomelon's works
// Author     : dodomelon
// Date       : 2020
//---------------------------------------------------------

;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hkfrich.common.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_role")
public class SysRole  extends BaseEntity implements Serializable {

	private static final long serialVersionUID = -3078662675104706437L;
	@TableId(type = IdType.AUTO)
	private Long  roleId;
	@TableField(condition = SqlCondition.LIKE)
	private String  roleName;
	@TableField(condition = SqlCondition.LIKE)
	private String  roleKey;
	/** 排序字段 */
	@TableField
	private Integer roleSort;
	@TableField
	private String  status;
	@TableField
	private Integer  delFlag;
	@TableField
	private Long  createBy;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(fill= FieldFill.INSERT)
	private Date createTime;
	@TableField
	private Long  updateBy;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(fill= FieldFill.UPDATE)
	private Date  updateTime;
	@TableField
	private String  remark;

	/** 菜单树选择项是否关联显示（ 0：父子不互相关联显示 1：父子互相关联显示） */
	@TableField(exist = false)
	private boolean menuCheckStrictly = true;

	/** 菜单组 */
	@TableField(exist = false)
	private Long[] menuIds;
}

